<template>
	<view class="content">
		
	</view>
</template>

<script>
	import { JSEncrypt } from 'jsencrypt/bin/jsencrypt';
	export default {
		data() {
			return {
				myInfo: {},
				platform: '',
				info: {
					rose: 0,
				},
				list: [],
				iapChannel: null,
				product_list: '',
			}
		},
		onLoad(options) {
			this.enphone('{"form": "VoVEmQCErkKWOVbB9U0F8h+btTS4hnszE/wan+cg7fi5ekRGgazRofL2i6R0TCkrJhb/9xNfvB/DxuRr4inq3GSFXUAmbHGpiqAsUVaZ/vyK5EchMONoLiKkvCVCLuyarc5SbDKigjh3WGeLmMVgcQwphwPgjd7Z6XIlw6V1NpI="}');
			
		},
		onReady() {
		},
		onNavigationBarButtonTap(e) {
			uni.navigateTo({
				url: 'my_paylog'
			})
		},
		onPullDownRefresh() {
			setTimeout(() => {
				this.getRose();
			}, 500)
		},
		methods: {
		   // 加密
			enphone(msg){
				let pubkey = '-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDAbfx4VggVVpcfCjzQ+nEiJ2DLnRg3e2QdDf/m/qMvtqXi4xhwvbpHfaX46CzQznU8l9NJtF28pTSZSKnE/791MJfVnucVcJcxRAEcpPprb8X3hfdxKEEYjOPAuVseewmO5cM+x7zi9FWbZ89uOp5sxjMnlVjDaIczKTRx+7vn2wIDAQAB-----END PUBLIC KEY-----'; // 公钥
				var encrypt = new JSEncrypt();
				encrypt.setPublicKey(pubkey);
				return encrypt.encrypt(msg);
			},
		}
	}
</script>

<style lang="scss">
	@import '../../common/common.scss';
	.user-info {
		background-color: #fff;
		padding: 50rpx;
		.title {
			display: flex;
			justify-content: center;
			align-items: center;
			.rose-icon {
				width: 50rpx;
				height: 50rpx;
				margin-right: 10rpx;
			}
			text {
				font-size: 30rpx;
				color: #333;
			}
		}
		.balance {
			text-align: center;
			font-size: 48rpx;
			font-weight: 700;
			color: #FF71A5;
		}
	}
	.rose-wrap {
		margin: 20rpx;
		.rose-list {
			background-color: #fff;
			border-radius: 20rpx;
		}
		.rose-item {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			padding: 20rpx;
			& + .rose-item {
				border-top: 1rpx solid #efefef;
			}
			.rose-icon {
				width: 50rpx;
				height: 50rpx;
				margin-right: 10rpx;
			}
			.label {
				font-size: 30rpx;
				color: #333;
			}
			.value {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: flex-start;
				flex: 1;
				padding: 0 10rpx;
				.tips {
					display: flex;
					justify-content: center;
					align-items: center;
					height: 30rpx;
					padding: 0 20rpx;
					background-color: #ED4574;
					border-radius: 5rpx;
					text {
						font-size: 16rpx;
						color: #fff;
					}
				}
				.text {
					display: flex;
					justify-content: flex-start;
					align-items: center;
					height: 40rpx;
					padding: 0 5rpx;
					text {
						font-size: 20rpx;
						color: #FF71A5;
						margin-right: 10rpx;
					}
				}
			}
			.pay-btn {
				border-radius: 100rpx;
			}
		}
	}
</style>
